<template>
  <!-- 应收账款 -->
  <div class="app">
    <el-form :model="tableData" class="demo-form-inline" :inline="true">
      <el-form-item label="客户名称">
        <el-input
        style="width:180px"
          placeholder="请输入客户名称"
          v-model="tableData.name"
        ></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary">查询</el-button>
      </el-form-item>
    </el-form>
    <el-table :data="tableData" border show-summary style="width: 100%">
      <el-table-column prop="id" label="日期" width="180"></el-table-column>
      <el-table-column prop="name" label="客户名称"></el-table-column>
      <el-table-column prop="amount1" sortable label="订单金额"></el-table-column>
      <el-table-column prop="amount2" sortable label="退款金额"></el-table-column>
      <el-table-column prop="amount3" sortable label="应收金额"></el-table-column>
      <el-table-column prop="amount4" sortable label="明细"></el-table-column>
    </el-table>
  </div>
</template>
 
<script>
export default {
  data() {
    return {
      tableData:[{
          id: '12987122',
          name: '王小虎',
          amount1: '234',
          amount2: '3.2',
          amount3: 10
        },{
          id: '12987123',
          name: '李晓雯',
          amount1: '235',
          amount2: '3.3',
          amount3: 12
        }]
    }
  },
}
</script>
 
<style scoped lang="scss">
.app{
    padding: 15px 15px;
}
</style>